package edu.gyc.hishiro.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ls
 * @since 2021-01-04
 */
public class Student implements Serializable {

    private static final long serialVersionUID=1L;

    public Student(String name, String major) {

        this.name = name;
        this.major = major;
    }

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;

    private String name;

    private String gender;

    private LocalDate birthday;

    private String major;


    public Integer getId() {
        return Id;
    }

    public void setId(Integer Id) {
        this.Id = Id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    @Override
    public String toString() {
        return "Student{" +
        "Id=" + Id +
        ", name=" + name +
        ", gender=" + gender +
        ", birthday=" + birthday +
        ", major=" + major +
        "}";
    }
}
